import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Index from '@/components/Index'
import yuanDongShuangLa from '@/components/yuanDongShuangLa'
import yuanDongShuangLa1 from '@/components/yuanDongShuangLa1'
import productsList from '@/components/productsList'
import products from '@/components/products'
import notFound from '@/components/notFound'
import equipmentAnalysis from '@/components/equipmentAnalysis'
import productionProcessImprovement from '@/components/productionProcessImprovement'
import Board from "@/components/Board";
import videoMonitoring from '@/components/videoMonitoring'
import video from '@/components/video'
import Fillinglineequipment from '@/components/hlf/Fillinglineequipment';
import Polygonalchart from '@/components/hlf/Polygonalchart';
import Gauge from '@/components/hlf/Gauge';
import tablecomponent from '@/components/hlf/tablecomponent';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Index',
      name: 'Index',
      component: Index
    },
    {
      path: '/Board',
      name: 'Board',
      component: Board
    },
    {
      path: '/yuanDongShuangLa',
      name: 'yuanDongShuangLa',
      component: yuanDongShuangLa
    },
    {
      path: '/yuanDongShuangLa1',
      name: 'yuanDongShuangLa1',
      component: yuanDongShuangLa1
    },
    {
      path: '/products',
      name: 'products',
      component: products
    },
    {
      path: '/productsList/:id',
      name: 'productsList',
      component: productsList
    },
    {
      // 会匹配所有路径
      path: '*',
      name: 'notFound',
      component: notFound
    },
    {
      path: '/equipmentAnalysis',
      name: 'equipmentAnalysis',
      component: equipmentAnalysis
    },
    {
      path: '/productionProcessImprovement',
      name: 'productionProcessImprovement',
      component: productionProcessImprovement
    },
    {
      path: '/videoMonitoring',
      name: 'videoMonitoring',
      component: videoMonitoring,
    },
    {
      path: '/video',
      name: 'video',
      component: video,
    },
    //测试设备记录板URL
    {
      path: '/Fillinglineequipment',
      name: 'Fillinglineequipment',
      component: Fillinglineequipment,
    }, 
    {
      path: '/Polygonalchart',
      name: 'Polygonalchart',
      component: Polygonalchart,
    },
    {
      path: '/Gauge',
      name: 'Gauge',
      component: Gauge,
    },
    {
      path: '/tablecomponent',
      name: 'tablecomponent',
      component: tablecomponent,
    },
    
  ]
})
